<form method="POST" style="padding:20px;">
  <?=is_writable(APP.'v/template') ? '':'<div class="alert">当前文件处于不可写状态，请检查文件所在目录权限！</div>'?>
  <label  >名称：</label>
  <div class="layui-input-block input_text">
    <input type="text" name="name" required value="<?=$page['name']?>"  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
    <input type="hidden" name="type" value="<?=$page['type']?>" required >
    <input type="hidden" name="upid" value="<?=$page['upid']?>" >
    <input type="hidden" name="sid" value="<?=$page['sid']?>" >
  </div>
  <label >内容：</label>
  <textarea name="content" style="min-height:300px;line-height:180%; background:#333;color:#aaa;"><?=htmlspecialchars($page['content'])?></textarea>
    <div  >
    <div  >
    <button class="layui-btn form_btn" lay-submit lay-filter="formDemo">立即提交</button>
    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
